<!-- BEGIN: REPORT -->
<div id="content">
<form action="" method="post">
  <table width="772" border="0">
    <tr>
      <th height="58" valign="middle" bgcolor="#E5E5E5" scope="col"><h1 align="left">Thống kê doanh thu</h1></th> <!--// H1 Title -->
    </tr>
    <tr>
      <td bgcolor="#FFFFFF">
      <p class="bodytext_paragraph">
        <table>
            <tr>
                <td><p class="bodytext_paragraph">Từ ngày</p></td>
                <td><p class="bodytext_paragraph">
                    <select name="day1">
                        <option value="0">Ngày</option>
                        <script type="text/javascript">
                            for(i=1; i<=31; i++){
                                document.write("<option value=" + i + ">" + i + "</option>");
                            }
                        </script>
                    </select>
                    <select name="month1">
                        <option value="0">Tháng</option>
                        <script type="text/javascript">
                            for(i=1; i<=12; i++){
                                document.write("<option value=" + i + ">" + i + "</option>");
                            }
                        </script>
                    </select>
                    <select name="year1">
                        <option value="0">Năm</option>
                        <script type="text/javascript">
                            for(i=1950; i<=2020; i++){
                                document.write("<option value=" + i + ">" + i + "</option>");
                            }
                        </script>
                    </select></p>
                </td>
            </tr>
            <tr>
                <td><p class="bodytext_paragraph">Tới ngày</p></td>
                <td><p class="bodytext_paragraph">
                    <select name="day2">
                        <option value="0">Ngày</option>
                        <script type="text/javascript">
                            for(i=1; i<=31; i++){
                                document.write("<option value=" + i + ">" + i + "</option>");
                            }
                        </script>
                    </select>
                    <select name="month2">
                        <option value="0">Tháng</option>
                        <script type="text/javascript">
                            for(i=1; i<=12; i++){
                                document.write("<option value=" + i + ">" + i + "</option>");
                            }
                        </script>
                    </select>
                    <select name="year2">
                        <option value="0">Năm</option>
                        <script type="text/javascript">
                            for(i=1950; i<=2020; i++){
                                document.write("<option value=" + i + ">" + i + "</option>");
                            }
                        </script>
                    </select></p>
                </td>
            </tr>
            <tr>
                <td><p class="bodytext_paragraph">&nbsp;</p></td>
                <td><p class="bodytext_paragraph"><input style="margin-left: 20px;" type="submit" name="submit" value="Thống kê" /></p></td>
            </tr>
            <tr>
                <td><p class="bodytext_paragraph">&nbsp;</p></td>
                <td><p class="bodytext_paragraph"><span class="batbuoc">{error}</span></p></td>
            </tr>
        </table>
        <!-- BEGIN: TABLE -->
        <table id="report_table" style="margin-left: 20px; margin-bottom: 20px;" cellpadding="1" cellspacing="0">
            <tr>
                <td width="100px" class="title_table"><p class="bodytext_paragraph"><b style="color: white;">Ngày</b></p></td>
                <td width="150px" class="title_table"><p class="bodytext_paragraph"><b style="color: white;">Tên sản phẩm</b></p></td>
                <td class="title_table"><p class="bodytext_paragraph"><b style="color: white;">Số lượng bán ra</b></p></td>
                <td width="150px" class="title_table"><p class="bodytext_paragraph"><b style="color: white; margin-left: 40px;">Tổng số tiền</b></p></td>
            </tr>
            <!-- BEGIN: TABLES -->
            <tr class="body_report">
                <td><p class="bodytext_paragraph">{date}</p></td>
                <td><p class="bodytext_paragraph">{milkname}</p></td>
                <td style="text-align: right;"><p class="bodytext_paragraph">{number}</p></td>
                <td style="text-align: right;"><p class="bodytext_paragraph">{total} 000 <b>VNĐ</b></p></td>
            </tr>
            <!-- END: TABLES -->
            <tr>
                <td><p class="bodytext_paragraph"><b class="batbuoc">Tổng cộng</b></p></td>
                <td>&nbsp;</td>
                <td style="text-align: right;"><p class="bodytext_paragraph"><span class="batbuoc">{numbers}</span></p></td>
                <td style="text-align: right;"><p class="bodytext_paragraph"><span class="batbuoc">{totals} 000 <b>VNĐ</b></span></p></td>
            </tr>
        </table>
        <!-- END: TABLE -->
      </p></td>
    </tr>
  </table>
</form>
</div>
<!-- END: REPORT -->